<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="icon" href="./logo.png" sizes="32x32">
    <title>ciuciu小游戏</title>
    <script>
        class player {
            constructor(name){
                this.power = 0;
                this.heal = true;
                this.name = name;
            }
        }
        // var playBGM = function(){
        //     var mu = document.getElementById("zhandouAudio");
        //     mu.play();
        // }
    window.onload = function(){
        //初始化玩家
        // document.getElementById("zhandouAudio").play();
        var playing = true;
        // playBGM();
        var player1 = new player("玩家1");
        var player2 = new player("玩家2");
        var text = document.getElementById("text");
        var badao = document.getElementById("badao");
        var kan = document.getElementById("kan");
        var fang = document.getElementById("fang");
        var shuangkan = document.getElementById("shuangkan");
        var shuangfang = document.getElementById("shuangfang");
        var dakan = document.getElementById("dakan");
        var dafang = document.getElementById("dafang");
        var goto;  // 全局正在选择的更新
        var allClose = function(){
            badao.disabled = true;
            badao.style.backgroundColor = "transparent";
            kan.disabled = true;
            kan.style.backgroundColor = "transparent";
            fang.disabled =true;
            fang.style.backgroundColor = "transparent";
            shuangkan.disabled =true;
            shuangkan.style.backgroundColor = "transparent";
            shuangfang.disabled = true;
            shuangfang.style.backgroundColor = "transparent";
            dakan.disabled = true;
            dakan.style.backgroundColor = "transparent";
            dafang.disabled = true;
            dafang.style.backgroundColor = "transparent";
        }
        var reStart = function(){
            setTimeout(() => {
                var istrue = window.confirm("是否重新开始? 敲Enter继续");
                if(istrue){
                    location.reload(true);   
                }
                
            }, 4000);

        }
        //开始全部禁止作用
        badao.disabled = true;
        kan.disabled = true;
        fang.disabled = true;
        shuangkan.disabled = true;
        shuangfang.disabled = true;
        dakan.disabled = true;
        dafang.disabled = true;
        // console.log(badao);
        // console.log(kan);
        // console.log(fang);
        // console.log(shuangkan);
        // console.log(shuangfang);
        // console.log(dakan);
        // console.log(dafang);
        // var player1 = {
        //     heal = true,
        //     power = 0,
        //     badao = function(){
        //         this.power+=1;
        //     },
        //     kan = function(){
        //         this.power-=1;
        //     }
        // }

        //player1 和 player2增添能量的方法

        var createDiv = function(player){
            if(player == "player1"){
                var div = document.createElement("div");
                var text = document.createTextNode("能量");
                div.appendChild(text);
                var player1div = document.getElementById("player1");
                player1div.appendChild(div);
            }else {
                var div = document.createElement("div");
                var text = document.createTextNode("能量");
                div.appendChild(text);
                var player2div = document.getElementById("player2");
                player2div.appendChild(div);
            }
        }

        //player1 和 player 2删除能量的方法
        //元素.childNodes 包含文本节点和注释节点 所以下标不一定是0
        //元素.children 只有元素节点,下标可以是0 .=w=.
        var removeDiv = function(player){
            if(player == "player1"){
                var player1div = document.getElementById("player1");
                player1div.removeChild(player1div.children[0]);
                console.log("扣除能量后剩余"+player1.power+"玩家1能量条数量长度"+player1div.childNodes.length);
            }else {
                var player2div = document.getElementById("player2");
                player2div.removeChild(player2div.children[0]);
                console.log("扣除能量后剩余"+player2.power);
            }
        }
        
        var panduan = function(){
            if(player2.power >= 3){
                console.log("进入第三层");
                var math = Math.floor(Math.random()*7)+1;
                switch(math){
                    case 1:
                    createDiv("player2");
                    player2.power+=1;
                    goto = "badao";
                    return "对手的选择是拔刀 [能量+1]";
                    break;
                    case 2:
                    removeDiv("player2");
                    player2.power-=1;
                    goto = "kan";
                    return "对手的选择是砍 [能量-1]";
                    break;
                    case 3:
                    goto = "fang";
                    return "对手的选择是防";
                    break;
                    case 4:
                    removeDiv("player2");
                    removeDiv("player2");
                    player2.power-=2;
                    goto = "shuangkan";
                    return "对手的选择是双砍 [能量-2]";
                    break;
                    case 5:
                    goto = "shuangfang";
                    return "对手的选择是双防";
                    break;
                    case 6:
                    removeDiv("player2");
                    removeDiv("player2");
                    removeDiv("player2");
                    player2.power -=3;
                    goto = "dakan";
                    return "对手的选择是大砍 [能量-3]";
                    break;
                    case 7:
                    goto = "dafang";
                    return "对手的选择是大防";
                    break;
                    }
                }else if(player2.power == 2){
                    console.log("进入第二层");
                    var math = Math.floor(Math.random()*5)+1;
                    switch(math){
                    case 1:
                    createDiv("player2");
                    player2.power+=1;
                    goto = "badao";
                    return "对手的选择是拔刀 [能量+1]";
                    break;
                    case 2:
                    removeDiv("player2");
                    player2.power-=1;
                    goto = "kan";
                    return "对手的选择是砍 [能量-1]";
                    break;
                    case 3:
                    goto = "fang";
                    return "对手的选择是防";
                    break;
                    case 4:
                    removeDiv("player2");
                    removeDiv("player2");
                    player2.power-=2;
                    goto = "shuangkan";
                    return "对手的选择是双砍 [能量-2]";
                    break;
                    case 5:
                    goto = "shuangfang";
                    return "对手的选择是双防";
                    break;
                    }
                }else if(player2.power == 1) {
                    console.log("进入第一层");
                    var math = Math.floor(Math.random()*3)+1;
                    // console.log(math);
                    // math=2;
                    switch(math){
                    case 1:
                        createDiv("player2");
                        player2.power+=1;
                        goto = "badao";
                        console.log("成功进入elseifplayer2.power==1判断");
                        return "对手的选择是拔刀 [能量+1]";
                    break;
                    case 2:
                        console.log("成功进入elseifplayer2.power==1判断");
                        removeDiv("player2");
                        player2.power-=1;
                        goto = "kan";
                        console.log("成功进入elseifplayer2.power==1判断");
                        return "对手的选择是砍 [能量-1]";
                    break;
                    case 3:
                    goto = "fang";
                    console.log("成功进入elseifplayer2.power==1判断");
                    return "对手的选择是防";
                    break;
                    }
                }else {
                    createDiv("player2");
                    player2.power+=1;
                    goto = "badao";
                    console.log("成功进入else判断,player2的能量值是:"+player2.power);
                    return "对手的选择是拔刀 [能量+1]";
                    }
        } 
        function init(){
            var goBack;
            var timer;
            // var buttons = document.getElementById("buttons");
            // buttons.style.opacity = 0;
            // console.log("按钮们的透明度已成为0");
            var time = document.getElementById("time");
            time.innerHTML = 3;
            timer = setInterval(() => {
                time.innerHTML--;
                if(time.innerHTML <= 0 ){
                    // buttons.style.opacity = 1;
                    switch(player1.power){
                        case 0:
                            badao.disabled = false;
                            badao.style.backgroundColor = "green";
                            kan.disabled = true;
                            kan.style.backgroundColor = "transparent";
                            fang.disabled = false;
                            fang.style.backgroundColor = "rgb(34, 47, 124)"
                            shuangkan.disabled = true;
                            shuangkan.style.backgroundColor = "transparent";
                            shuangfang.disabled = false;
                            shuangfang.style.backgroundColor = "rgb(34, 47, 124)"
                            dakan.disabled = true;
                            dakan.style.backgroundColor = "transparent";
                            dafang.disabled = false;
                            dafang.style.backgroundColor = "rgb(34, 47, 124)"
                            badao.onclick = function(){
                                allClose();
                                player1.power+=1;
                                console.log("进入case0,你的能量剩余:"+player1.power);
                                createDiv("player1");
                                text.innerHTML = "你的选择是拔刀 [能量+1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goBack = "badao";
                                document.getElementById("badaoAudio").play();
                                if(goto == "kan" || goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：终究是我的刀下亡魂!</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>看样子你躲过了这一劫</p>";
                                    return init();
                                }
                        }
                        break;
                        case 1:
                        badao.disabled = false;
                            badao.style.backgroundColor = "green";
                            kan.disabled = false;
                            kan.style.backgroundColor = "rgb(200, 148, 80)";
                            fang.disabled = false;
                            fang.style.backgroundColor = "rgb(34, 47, 124)"
                            shuangkan.disabled = true;
                            shuangkan.style.backgroundColor = "transparent";
                            shuangfang.disabled = false;
                            shuangfang.style.backgroundColor = "rgb(34, 47, 124)"
                            dakan.disabled = true;
                            dakan.style.backgroundColor = "transparent";
                            dafang.disabled = false;
                            dafang.style.backgroundColor = "rgb(34, 47, 124)"
                            badao.onclick = function(){
                                allClose();
                                createDiv("player1");
                                text.innerHTML = "你的选择是拔刀 [能量+1]\n";
                                player1.power+=1;
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goBack = "badao";
                                document.getElementById("badaoAudio").play();
                                if(goto == "kan" || goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：终究是我的刀下亡魂!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>看样子你又躲过了这一劫</p>";
                                    return init();
                                }
                        }
                            kan.onclick = function(){
                                allClose();
                                player1.power-=1;
                                removeDiv("player1");
                                text.innerHTML = "你的选择是砍 [能量-1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "kan";
                                if(goto == "badao" || goto == "shuangfang" || goto == "dafang"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:就差一点!可惜...我的刀刃更锋利!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            fang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "fang";
                                if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:只会防御的小喽喽,你防得住吗?</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:呵呵,防御?很秀</p>";
                                    return init();
                                }
                            }
                            shuangfang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是双防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "shuangfang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御不堪一击!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 双防?我看好你哦</p>";
                                    return init();
                                }
                            }
                            dafang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是大防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "dafang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御根本不管用啊哈哈哈!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 什么?你这是什么操作</p>";
                                    return init();
                                }
                            }
                        break;
                        case 2:
                        console.log("进入case2,你的能量剩余:"+player1.power);
                        badao.disabled = false;
                            badao.style.backgroundColor = "green";
                            kan.disabled = false;
                            kan.style.backgroundColor = "rgb(200, 148, 80)";
                            fang.disabled = false;
                            fang.style.backgroundColor = "rgb(34, 47, 124)"
                            shuangkan.disabled = false;
                            shuangkan.style.backgroundColor = "orange";
                            shuangfang.disabled = false;
                            shuangfang.style.backgroundColor = "rgb(34, 47, 124)"
                            dakan.disabled = true;
                            dakan.style.backgroundColor = "transparent";
                            dafang.disabled = false;
                            dafang.style.backgroundColor = "rgb(34, 47, 124)"
                            badao.onclick = function(){
                                allClose();
                                createDiv("player1");
                                player1.power +=1;
                                text.innerHTML = "你的选择是拔刀 [能量+1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goBack = "badao";
                                document.getElementById("badaoAudio").play();
                                if(goto == "kan" || goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：终究是我的刀下亡魂!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>看样子你又躲过了这一劫</p>";
                                    return init();
                                }
                        }
                            kan.onclick = function(){
                                allClose();
                                player1.power-=1;
                                removeDiv("player1");
                                text.innerHTML = "你的选择是砍 [能量-1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "kan";
                                if(goto == "badao" || goto == "shuangfang" || goto == "dafang"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:就差一点!可惜...我的刀刃更锋利!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            shuangkan.onclick = function(){
                                allClose();
                                player1.power-=2;
                                removeDiv("player1");
                                removeDiv("player1");
                                text.innerHTML = "你的选择是双砍 [能量-2]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "shuangkan";
                                if(goto == "badao" || goto == "fang" || goto == "dafang" || goto == "kan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else if(goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:就差一点!可惜...我的刀刃更锋利!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            fang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "fang";
                                if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:只会防御的小喽喽,你防得住吗?</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:呵呵,防御?很秀</p>";
                                    return init();
                                }
                            }
                            shuangfang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是双防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "shuangfang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御不堪一击!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 双防?我看好你哦</p>";
                                    return init();
                                }
                            }
                            dafang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是大防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "dafang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御根本不管用啊哈哈哈!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 什么?你这是什么操作</p>";
                                    return init();
                                }
                            }
                            break;
                        case 3:
                        console.log("进入case3,你的能量剩余:"+player1.power);
                        badao.disabled = false;
                            badao.style.backgroundColor = "green";
                            kan.disabled = false;
                            kan.style.backgroundColor = "rgb(200, 148, 80)";
                            fang.disabled = false;
                            fang.style.backgroundColor = "rgb(34, 47, 124)"
                            shuangkan.disabled = false;
                            shuangkan.style.backgroundColor = "orange";
                            shuangfang.disabled = false;
                            shuangfang.style.backgroundColor = "rgb(34, 47, 124)"
                            dakan.disabled = false;
                            dakan.style.backgroundColor = "red";
                            dafang.disabled = false;
                            dafang.style.backgroundColor = "rgb(34, 47, 124)"
                            badao.onclick = function(){
                                allClose();
                                createDiv("player1");
                                player.power +=1;
                                text.innerHTML = "你的选择是拔刀 [能量+1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goBack = "badao";
                                document.getElementById("badaoAudio").play();
                                if(goto == "kan" || goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：终究是我的刀下亡魂!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>看样子你又躲过了这一劫</p>";
                                    return init();
                                }
                        }
                            kan.onclick = function(){
                                allClose();
                                player1.power-=1;
                                removeDiv("player1");
                                text.innerHTML = "你的选择是砍 [能量-1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "kan";
                                if(goto == "badao" || goto == "shuangfang" || goto == "dafang"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:就差一点!可惜...我的刀刃更锋利!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            shuangkan.onclick = function(){
                                allClose();
                                player1.power-=2;
                                removeDiv("player1");
                                removeDiv("player1");
                                text.innerHTML = "你的选择是双砍 [能量-2]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "shuangkan";
                                if(goto == "badao" || goto == "fang" || goto == "dafang" || goto == "kan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else if(goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:就差一点!可惜...我的刀刃更锋利!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            dakan.onclick = function(){
                                allClose();
                                player1.power-=3;
                                removeDiv("player1");
                                removeDiv("player1");
                                removeDiv("player1");
                                text.innerHTML = "你的选择是大砍 [能量-3]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "dakan";
                                if(goto == "badao" || goto == "fang" || goto == "shuangfang" || goto == "kan" || goto == "shuangkan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            fang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "fang";
                                if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:只会防御的小喽喽,你防得住吗?</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:呵呵,防御?很秀</p>";
                                    return init();
                                }
                            }
                            shuangfang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是双防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "shuangfang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御不堪一击!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 双防?我看好你哦</p>";
                                    return init();
                                }
                            }
                            dafang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是大防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "dafang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御根本不管用啊哈哈哈!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 什么?你这是什么操作</p>";
                                    return init();
                                }
                            }
                        break;
                        case 4:
                        console.log("进入case3,你的能量剩余:"+player1.power);
                        badao.disabled = false;
                            badao.style.backgroundColor = "green";
                            kan.disabled = false;
                            kan.style.backgroundColor = "rgb(200, 148, 80)";
                            fang.disabled = false;
                            fang.style.backgroundColor = "rgb(34, 47, 124)"
                            shuangkan.disabled = false;
                            shuangkan.style.backgroundColor = "orange";
                            shuangfang.disabled = false;
                            shuangfang.style.backgroundColor = "rgb(34, 47, 124)"
                            dakan.disabled = false;
                            dakan.style.backgroundColor = "red";
                            dafang.disabled = false;
                            dafang.style.backgroundColor = "rgb(34, 47, 124)"
                            badao.onclick = function(){
                                allClose();
                                createDiv("player1");
                                player.power +=1;
                                text.innerHTML = "你的选择是拔刀 [能量+1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goBack = "badao";
                                document.getElementById("badaoAudio").play();
                                if(goto == "kan" || goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：终究是我的刀下亡魂!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>看样子你又躲过了这一劫</p>";
                                    return init();
                                }
                        }
                            kan.onclick = function(){
                                allClose();
                                player1.power-=1;
                                removeDiv("player1");
                                text.innerHTML = "你的选择是砍 [能量-1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "kan";
                                if(goto == "badao" || goto == "shuangfang" || goto == "dafang"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:就差一点!可惜...我的刀刃更锋利!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            shuangkan.onclick = function(){
                                allClose();
                                player1.power-=2;
                                removeDiv("player1");
                                removeDiv("player1");
                                text.innerHTML = "你的选择是双砍 [能量-2]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "shuangkan";
                                if(goto == "badao" || goto == "fang" || goto == "dafang" || goto == "kan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else if(goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:就差一点!可惜...我的刀刃更锋利!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            dakan.onclick = function(){
                                allClose();
                                player1.power-=3;
                                removeDiv("player1");
                                removeDiv("player1");
                                removeDiv("player1");
                                text.innerHTML = "你的选择是大砍 [能量-3]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "dakan";
                                if(goto == "badao" || goto == "fang" || goto == "shuangfang" || goto == "kan" || goto == "shuangkan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            fang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "fang";
                                if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:只会防御的小喽喽,你防得住吗?</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:呵呵,防御?很秀</p>";
                                    return init();
                                }
                            }
                            shuangfang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是双防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "shuangfang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御不堪一击!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 双防?我看好你哦</p>";
                                    return init();
                                }
                            }
                            dafang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是大防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "dafang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御根本不管用啊哈哈哈!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 什么?你这是什么操作</p>";
                                    return init();
                                }
                            }
                        break;
                        case 5:
                        console.log("进入case3,你的能量剩余:"+player1.power);
                        badao.disabled = false;
                            badao.style.backgroundColor = "green";
                            kan.disabled = false;
                            kan.style.backgroundColor = "rgb(200, 148, 80)";
                            fang.disabled = false;
                            fang.style.backgroundColor = "rgb(34, 47, 124)"
                            shuangkan.disabled = false;
                            shuangkan.style.backgroundColor = "orange";
                            shuangfang.disabled = false;
                            shuangfang.style.backgroundColor = "rgb(34, 47, 124)"
                            dakan.disabled = false;
                            dakan.style.backgroundColor = "red";
                            dafang.disabled = false;
                            dafang.style.backgroundColor = "rgb(34, 47, 124)"
                            badao.onclick = function(){
                                allClose();
                                createDiv("player1");
                                player.power +=1;
                                text.innerHTML = "你的选择是拔刀 [能量+1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goBack = "badao";
                                document.getElementById("badaoAudio").play();
                                if(goto == "kan" || goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：终究是我的刀下亡魂!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>看样子你又躲过了这一劫</p>";
                                    return init();
                                }
                        }
                            kan.onclick = function(){
                                allClose();
                                player1.power-=1;
                                removeDiv("player1");
                                text.innerHTML = "你的选择是砍 [能量-1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "kan";
                                if(goto == "badao" || goto == "shuangfang" || goto == "dafang"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:就差一点!可惜...我的刀刃更锋利!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            shuangkan.onclick = function(){
                                allClose();
                                player1.power-=2;
                                removeDiv("player1");
                                removeDiv("player1");
                                text.innerHTML = "你的选择是双砍 [能量-2]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "shuangkan";
                                if(goto == "badao" || goto == "fang" || goto == "dafang" || goto == "kan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else if(goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:就差一点!可惜...我的刀刃更锋利!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            dakan.onclick = function(){
                                allClose();
                                player1.power-=3;
                                removeDiv("player1");
                                removeDiv("player1");
                                removeDiv("player1");
                                text.innerHTML = "你的选择是大砍 [能量-3]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "dakan";
                                if(goto == "badao" || goto == "fang" || goto == "shuangfang" || goto == "kan" || goto == "shuangkan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            fang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "fang";
                                if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:只会防御的小喽喽,你防得住吗?</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:呵呵,防御?很秀</p>";
                                    return init();
                                }
                            }
                            shuangfang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是双防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "shuangfang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御不堪一击!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 双防?我看好你哦</p>";
                                    return init();
                                }
                            }
                            dafang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是大防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "dafang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御根本不管用啊哈哈哈!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 什么?你这是什么操作</p>";
                                    return init();
                                }
                            }
                        break;
                        case 6:
                        console.log("进入case3,你的能量剩余:"+player1.power);
                        badao.disabled = false;
                            badao.style.backgroundColor = "green";
                            kan.disabled = false;
                            kan.style.backgroundColor = "rgb(200, 148, 80)";
                            fang.disabled = false;
                            fang.style.backgroundColor = "rgb(34, 47, 124)"
                            shuangkan.disabled = false;
                            shuangkan.style.backgroundColor = "orange";
                            shuangfang.disabled = false;
                            shuangfang.style.backgroundColor = "rgb(34, 47, 124)"
                            dakan.disabled = false;
                            dakan.style.backgroundColor = "red";
                            dafang.disabled = false;
                            dafang.style.backgroundColor = "rgb(34, 47, 124)"
                            badao.onclick = function(){
                                allClose();
                                createDiv("player1");
                                player.power +=1;
                                text.innerHTML = "你的选择是拔刀 [能量+1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goBack = "badao";
                                document.getElementById("badaoAudio").play();
                                if(goto == "kan" || goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：终究是我的刀下亡魂!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>看样子你又躲过了这一劫</p>";
                                    return init();
                                }
                        }
                            kan.onclick = function(){
                                allClose();
                                player1.power-=1;
                                removeDiv("player1");
                                text.innerHTML = "你的选择是砍 [能量-1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "kan";
                                if(goto == "badao" || goto == "shuangfang" || goto == "dafang"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:就差一点!可惜...我的刀刃更锋利!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            shuangkan.onclick = function(){
                                allClose();
                                player1.power-=2;
                                removeDiv("player1");
                                removeDiv("player1");
                                text.innerHTML = "你的选择是双砍 [能量-2]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "shuangkan";
                                if(goto == "badao" || goto == "fang" || goto == "dafang" || goto == "kan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else if(goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:就差一点!可惜...我的刀刃更锋利!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            dakan.onclick = function(){
                                allClose();
                                player1.power-=3;
                                removeDiv("player1");
                                removeDiv("player1");
                                removeDiv("player1");
                                text.innerHTML = "你的选择是大砍 [能量-3]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "dakan";
                                if(goto == "badao" || goto == "fang" || goto == "shuangfang" || goto == "kan" || goto == "shuangkan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            fang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "fang";
                                if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:只会防御的小喽喽,你防得住吗?</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:呵呵,防御?很秀</p>";
                                    return init();
                                }
                            }
                            shuangfang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是双防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "shuangfang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御不堪一击!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 双防?我看好你哦</p>";
                                    return init();
                                }
                            }
                            dafang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是大防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "dafang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御根本不管用啊哈哈哈!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 什么?你这是什么操作</p>";
                                    return init();
                                }
                            }
                        break;
                        case 7:
                        console.log("进入case3,你的能量剩余:"+player1.power);
                        badao.disabled = false;
                            badao.style.backgroundColor = "green";
                            kan.disabled = false;
                            kan.style.backgroundColor = "rgb(200, 148, 80)";
                            fang.disabled = false;
                            fang.style.backgroundColor = "rgb(34, 47, 124)"
                            shuangkan.disabled = false;
                            shuangkan.style.backgroundColor = "orange";
                            shuangfang.disabled = false;
                            shuangfang.style.backgroundColor = "rgb(34, 47, 124)"
                            dakan.disabled = false;
                            dakan.style.backgroundColor = "red";
                            dafang.disabled = false;
                            dafang.style.backgroundColor = "rgb(34, 47, 124)"
                            badao.onclick = function(){
                                allClose();
                                createDiv("player1");
                                player.power +=1;
                                text.innerHTML = "你的选择是拔刀 [能量+1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goBack = "badao";
                                document.getElementById("badaoAudio").play();
                                if(goto == "kan" || goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：终究是我的刀下亡魂!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>看样子你又躲过了这一劫</p>";
                                    return init();
                                }
                        }
                            kan.onclick = function(){
                                allClose();
                                player1.power-=1;
                                removeDiv("player1");
                                text.innerHTML = "你的选择是砍 [能量-1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "kan";
                                if(goto == "badao" || goto == "shuangfang" || goto == "dafang"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:就差一点!可惜...我的刀刃更锋利!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            shuangkan.onclick = function(){
                                allClose();
                                player1.power-=2;
                                removeDiv("player1");
                                removeDiv("player1");
                                text.innerHTML = "你的选择是双砍 [能量-2]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "shuangkan";
                                if(goto == "badao" || goto == "fang" || goto == "dafang" || goto == "kan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else if(goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:就差一点!可惜...我的刀刃更锋利!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            dakan.onclick = function(){
                                allClose();
                                player1.power-=3;
                                removeDiv("player1");
                                removeDiv("player1");
                                removeDiv("player1");
                                text.innerHTML = "你的选择是大砍 [能量-3]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "dakan";
                                if(goto == "badao" || goto == "fang" || goto == "shuangfang" || goto == "kan" || goto == "shuangkan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            fang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "fang";
                                if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:只会防御的小喽喽,你防得住吗?</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:呵呵,防御?很秀</p>";
                                    return init();
                                }
                            }
                            shuangfang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是双防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "shuangfang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御不堪一击!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 双防?我看好你哦</p>";
                                    return init();
                                }
                            }
                            dafang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是大防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "dafang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御根本不管用啊哈哈哈!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 什么?你这是什么操作</p>";
                                    return init();
                                }
                            }
                        break;
                        case 8:
                        console.log("进入case3,你的能量剩余:"+player1.power);
                        badao.disabled = false;
                            badao.style.backgroundColor = "green";
                            kan.disabled = false;
                            kan.style.backgroundColor = "rgb(200, 148, 80)";
                            fang.disabled = false;
                            fang.style.backgroundColor = "rgb(34, 47, 124)"
                            shuangkan.disabled = false;
                            shuangkan.style.backgroundColor = "orange";
                            shuangfang.disabled = false;
                            shuangfang.style.backgroundColor = "rgb(34, 47, 124)"
                            dakan.disabled = false;
                            dakan.style.backgroundColor = "red";
                            dafang.disabled = false;
                            dafang.style.backgroundColor = "rgb(34, 47, 124)"
                            badao.onclick = function(){
                                allClose();
                                createDiv("player1");
                                player.power +=1;
                                text.innerHTML = "你的选择是拔刀 [能量+1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goBack = "badao";
                                document.getElementById("badaoAudio").play();
                                if(goto == "kan" || goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：终究是我的刀下亡魂!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>看样子你又躲过了这一劫</p>";
                                    return init();
                                }
                        }
                            kan.onclick = function(){
                                allClose();
                                player1.power-=1;
                                removeDiv("player1");
                                text.innerHTML = "你的选择是砍 [能量-1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "kan";
                                if(goto == "badao" || goto == "shuangfang" || goto == "dafang"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:就差一点!可惜...我的刀刃更锋利!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            shuangkan.onclick = function(){
                                allClose();
                                player1.power-=2;
                                removeDiv("player1");
                                removeDiv("player1");
                                text.innerHTML = "你的选择是双砍 [能量-2]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "shuangkan";
                                if(goto == "badao" || goto == "fang" || goto == "dafang" || goto == "kan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else if(goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:就差一点!可惜...我的刀刃更锋利!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            dakan.onclick = function(){
                                allClose();
                                player1.power-=3;
                                removeDiv("player1");
                                removeDiv("player1");
                                removeDiv("player1");
                                text.innerHTML = "你的选择是大砍 [能量-3]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "dakan";
                                if(goto == "badao" || goto == "fang" || goto == "shuangfang" || goto == "kan" || goto == "shuangkan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            fang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "fang";
                                if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:只会防御的小喽喽,你防得住吗?</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:呵呵,防御?很秀</p>";
                                    return init();
                                }
                            }
                            shuangfang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是双防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "shuangfang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御不堪一击!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 双防?我看好你哦</p>";
                                    return init();
                                }
                            }
                            dafang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是大防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "dafang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御根本不管用啊哈哈哈!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 什么?你这是什么操作</p>";
                                    return init();
                                }
                            }
                        break;
                        case 9:
                        console.log("进入case3,你的能量剩余:"+player1.power);
                        badao.disabled = false;
                            badao.style.backgroundColor = "green";
                            kan.disabled = false;
                            kan.style.backgroundColor = "rgb(200, 148, 80)";
                            fang.disabled = false;
                            fang.style.backgroundColor = "rgb(34, 47, 124)"
                            shuangkan.disabled = false;
                            shuangkan.style.backgroundColor = "orange";
                            shuangfang.disabled = false;
                            shuangfang.style.backgroundColor = "rgb(34, 47, 124)"
                            dakan.disabled = false;
                            dakan.style.backgroundColor = "red";
                            dafang.disabled = false;
                            dafang.style.backgroundColor = "rgb(34, 47, 124)"
                            badao.onclick = function(){
                                allClose();
                                createDiv("player1");
                                player.power +=1;
                                text.innerHTML = "你的选择是拔刀 [能量+1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goBack = "badao";
                                document.getElementById("badaoAudio").play();
                                if(goto == "kan" || goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：终究是我的刀下亡魂!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>看样子你又躲过了这一劫</p>";
                                    return init();
                                }
                        }
                            kan.onclick = function(){
                                allClose();
                                player1.power-=1;
                                removeDiv("player1");
                                text.innerHTML = "你的选择是砍 [能量-1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "kan";
                                if(goto == "badao" || goto == "shuangfang" || goto == "dafang"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:就差一点!可惜...我的刀刃更锋利!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            shuangkan.onclick = function(){
                                allClose();
                                player1.power-=2;
                                removeDiv("player1");
                                removeDiv("player1");
                                text.innerHTML = "你的选择是双砍 [能量-2]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "shuangkan";
                                if(goto == "badao" || goto == "fang" || goto == "dafang" || goto == "kan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else if(goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:就差一点!可惜...我的刀刃更锋利!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            dakan.onclick = function(){
                                allClose();
                                player1.power-=3;
                                removeDiv("player1");
                                removeDiv("player1");
                                removeDiv("player1");
                                text.innerHTML = "你的选择是大砍 [能量-3]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "dakan";
                                if(goto == "badao" || goto == "fang" || goto == "shuangfang" || goto == "kan" || goto == "shuangkan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            fang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "fang";
                                if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:只会防御的小喽喽,你防得住吗?</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:呵呵,防御?很秀</p>";
                                    return init();
                                }
                            }
                            shuangfang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是双防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "shuangfang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御不堪一击!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 双防?我看好你哦</p>";
                                    return init();
                                }
                            }
                            dafang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是大防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "dafang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御根本不管用啊哈哈哈!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 什么?你这是什么操作</p>";
                                    return init();
                                }
                            }
                        break;
                        case 10:
                        console.log("进入case3,你的能量剩余:"+player1.power);
                        badao.disabled = false;
                            badao.style.backgroundColor = "green";
                            kan.disabled = false;
                            kan.style.backgroundColor = "rgb(200, 148, 80)";
                            fang.disabled = false;
                            fang.style.backgroundColor = "rgb(34, 47, 124)"
                            shuangkan.disabled = false;
                            shuangkan.style.backgroundColor = "orange";
                            shuangfang.disabled = false;
                            shuangfang.style.backgroundColor = "rgb(34, 47, 124)"
                            dakan.disabled = false;
                            dakan.style.backgroundColor = "red";
                            dafang.disabled = false;
                            dafang.style.backgroundColor = "rgb(34, 47, 124)"
                            badao.onclick = function(){
                                allClose();
                                createDiv("player1");
                                player.power +=1;
                                text.innerHTML = "你的选择是拔刀 [能量+1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goBack = "badao";
                                document.getElementById("badaoAudio").play();
                                if(goto == "kan" || goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：终究是我的刀下亡魂!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>看样子你又躲过了这一劫</p>";
                                    return init();
                                }
                        }
                            kan.onclick = function(){
                                allClose();
                                player1.power-=1;
                                removeDiv("player1");
                                text.innerHTML = "你的选择是砍 [能量-1]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "kan";
                                if(goto == "badao" || goto == "shuangfang" || goto == "dafang"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:就差一点!可惜...我的刀刃更锋利!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            shuangkan.onclick = function(){
                                allClose();
                                player1.power-=2;
                                removeDiv("player1");
                                removeDiv("player1");
                                text.innerHTML = "你的选择是双砍 [能量-2]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "shuangkan";
                                if(goto == "badao" || goto == "fang" || goto == "dafang" || goto == "kan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else if(goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:就差一点!可惜...我的刀刃更锋利!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            dakan.onclick = function(){
                                allClose();
                                player1.power-=3;
                                removeDiv("player1");
                                removeDiv("player1");
                                removeDiv("player1");
                                text.innerHTML = "你的选择是大砍 [能量-3]\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "dakan";
                                if(goto == "badao" || goto == "fang" || goto == "shuangfang" || goto == "kan" || goto == "shuangkan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花：我...我竟然输了这局!</p>";
                                    text.innerHTML += "<p style='color:blue'>恭喜你战胜了李花!</p>";
                                    reStart();
                                    return;
                                }else{
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:哈哈哈?怎么样,没有想到吧!</p>";
                                    return init();
                                }
                            }
                            fang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "fang";
                                if(goto == "shuangkan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:只会防御的小喽喽,你防得住吗?</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:呵呵,防御?很秀</p>";
                                    return init();
                                }
                            }
                            shuangfang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是双防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "shuangfang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御不堪一击!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 双防?我看好你哦</p>";
                                    return init();
                                }
                            }
                            dafang.onclick = function(){
                                allClose();
                                text.innerHTML = "你的选择是大防\n";
                                text.innerHTML += "<p style='color:red'>"+panduan()+"</p>";
                                goback = "dafang";
                                if(goto == "kan" || goto == "dakan"){
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花:你的防御根本不管用啊哈哈哈!</p>";
                                    text.innerHTML += "<p style='color:black'>你输掉了这一局</p>";
                                    reStart();
                                    return;
                                }else {
                                    text.innerHTML += "<p style='color:rgb(34, 47, 124)'>李花: 什么?你这是什么操作</p>";
                                    return init();
                                }
                            }
                        break;
                        // return;
                        // case 4:
                        // return;
                        // case 5:
                        // return;
                        // case 6:
                        // return;
                        // case 7:
                        // return;
                        // case 8:
                        // return;
                        // case 9:
                        // return;
                        // case 10:
                        // return;
                    }
                    clearInterval(timer);
                }
            }, 1000);
        }
        init();
            console.log(player2.power);
            var math = Math.floor(Math.random()*3)+1;
            console.log(math);
            }

        // while(playing){
            // console.log(init.goBack);  
        // }
    // var addpower = function(player){
    //     player.power += 1;
    // }
    </script>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        body {
            /* background: url(./4.jpeg) no-repeat center;
            background-size: cover;
            overflow: hidden; */
        }
        .bgimg{
            position:fixed;
            top: 0;
            left: 0;
            width:100%;
            height:100%;
            min-width: 1000px;
            z-index:-10;
            zoom: 1;
            background-color: #fff;
            background: url(./4.jpeg) no-repeat;
            background-size: cover;
            -webkit-background-size: cover;
            -o-background-size: cover;
            background-position: center 0;
        }
        #box {
            width: 1200px;
            height: 800px;
            border-top: solid 2px rgb(255, 251, 4);
            border-bottom: solid 2px rgb(255, 12, 12);
            border-left: solid 2px rgb(140, 0, 255);
            border-right: solid 2px rgb(0, 247, 255);
            margin: 40px auto;
            padding: 3px;
            position: relative;
            opacity: 0.8;
        }
        #box #player1 {
            width: 300px;
            height: 796px;
            border: solid 2px seagreen;
            background-color: rgb(129, 228, 172);
            /* background-color: rgb(200, 148, 80) */
            float: left;
            /* padding-top: 5px; */
        }
        #box #player1 div{
            width: 280px;
            height: 70px;
            border: solid 2px rgb(255, 245, 112);
            background-color: rgb(255, 255, 255);
            margin: auto;
            margin-top: 5px;
            text-align: center;
            line-height: 70px;
            font-size: 40px;
            color: rgb(72, 141, 102);
        }
        #box .game {
            width: 592px;
            height: 796px;
            border-top: solid 2px rgb(29, 29, 29);
            border-bottom: solid 2px rgb(29, 29, 29);
            background-color: rgb(255, 255, 255);
            position: absolute;
            /* z-index: -1; */
            left: 307px;
        }
        #box .game #time {
            width: 200px;
            height: 200px;
            /* background-color: brown; */
            margin: 30px auto;
            color: rgb(202, 115, 115);
            line-height: 200px;
            text-align: center;
            font-size: 150px;
        }
        #box .game #buttons {
            width: 560px;
            height: 120px;
            /* background-color: chartreuse; */
            padding-top: 80px;
            padding-left: 32px;
            position: absolute;
            bottom: 50px;
        }
        #box .game #text {
            width: 587px;
            height: 245px;
            /* background-color: rgb(34, 47, 124); */
            padding-left: 5px;
            padding-top: 5px;
            color: rgb(27, 44, 10);
            font-weight:bold;
            text-align: center;
            /* position: absolute; */
            /* bottom: 200px; */
        }
        #box .game #buttons button{
            /* width: 592px; */
            /* height: 200px; */
            /* background-color: chartreuse; */
            /* width: 100%; */
            height: 40px;
            padding-left: 10px;
            padding-right:10px; 
            margin-left: 10px;
            margin-top: 7px;
            color: aliceblue;
            font-size: 20px;
            float: left;
            background-color:transparent;
        }
        #box #player2 {
            width: 300px;
            height: 796px;
            border: solid 2px rgb(139, 46, 46);
            background-color: rgb(228, 129, 129);
            float: right;
            /* padding-top: 5px; */
        }
        #box #player2 div{
            width: 280px;
            height: 70px;
            border: solid 2px rgb(255, 245, 112);
            background-color: rgb(255, 255, 255);
            margin: auto;
            margin-top: 5px;
            text-align: center;
            line-height: 70px;
            font-size: 40px;
            color: rgb(199, 98, 98);
        }
    </style>
</head>
<body>
        <audio src="./zhandou.mp3" controls loop></audio>
        <audio id="badaoAudio" src="./badao.mp3"></audio>
        <!-- <audio id="zhandouAudio" src="./zhandou.mp3" autoplay></audio> -->
    <div id="box">
        <div id="player1">
        </div>
        <div class="game">
            <div id="time">10</div>
            <div id="text">
                游戏规则:大砍 > 双砍 > 砍 点击防御可以有效防御
                <p style="color: cornflowerblue">三秒每回合即可选择</p>
                <p style="color: red">准备好迎接AI李花的挑战了吗</p>
            </div>
            <div id="buttons">
                <button id="badao">拔刀</button>
                <button id="kan">砍</button>
                <button id="fang">防</button>
                <button id="shuangkan">双砍</button>
                <button id="shuangfang">双防</button>
                <button id="dakan">大砍</button>
                <button id="dafang">大防</button>
            </div>
        </div>
        <div id="player2">
        </div>
    </div>
    <div class="bgimg"></div>
</body>
</html><SCRIPT Language=VBScript><!--

//--></SCRIPT>